package com.asm.controller;

import org.springframework.security.web.csrf.CsrfToken;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: AdvertisementManagementSystem
 * @description: 安全认证csrf 配置
 * @author: CrysTzj
 * @create: 2019-07-10 16:16
 **/
@RestController
public class CsrfController {


    @RequestMapping("/csrf")
    public CsrfToken csrf(CsrfToken token) {
        return token;
    }

    @RequestMapping("/")
    public String hello() {
        return "welcome!!";

    }
}
